package com.hejia.alauda.entity;

import javax.persistence.Column;

/**
 * 销售活动设备配置
 * 
 * @author hyr
 *
 */
public class SaleActivityDevice extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6815824099602462689L;

	/**
	 * 设备
	 * 
	 * @author hyr
	 *
	 */
	public enum Device {
		PC, H5, IOS, ANDROID
	}

	@Column
	private SaleActivity saleActivity; // 活动

	@Column
	private Device device; // 设备

	@Column
	private String url; // 活动地址

	@Column
	private String banner; // 图片地址

	@Column
	private boolean displayOnBanner; // 是否在banner上显示

	@Column
	private boolean displayInCenter; // 是否在活动给中心显示

	@Column
	private boolean overdueHide; // 过期隐藏

	public SaleActivity getSaleActivity() {
		return saleActivity;
	}

	public void setSaleActivity(SaleActivity saleActivity) {
		this.saleActivity = saleActivity;
	}

	public Device getDevice() {
		return device;
	}

	public void setDevice(Device device) {
		this.device = device;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getBanner() {
		return banner;
	}

	public void setBanner(String banner) {
		this.banner = banner;
	}

	public boolean isDisplayOnBanner() {
		return displayOnBanner;
	}

	public void setDisplayOnBanner(boolean displayOnBanner) {
		this.displayOnBanner = displayOnBanner;
	}

	public boolean isDisplayInCenter() {
		return displayInCenter;
	}

	public void setDisplayInCenter(boolean displayInCenter) {
		this.displayInCenter = displayInCenter;
	}

	public boolean isOverdueHide() {
		return overdueHide;
	}

	public void setOverdueHide(boolean overdueHide) {
		this.overdueHide = overdueHide;
	}

}
